package com.kunya.product.dao.category;

import com.kunya.product.po.Category;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CategoryMapper {
    int deleteByPrimaryKey(@Param("categoryId") Long categoryId,@Param("table_prefix") String table_prefix);

    int insert(@Param("category") Category category,@Param("table_prefix") String table_prefix);

    int insertSelective(@Param("category") Category category,@Param("table_prefix") String table_prefix);

    Category selectByPrimaryKey(@Param("categoryId") Long categoryId,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKeySelective(@Param("category") Category category,@Param("table_prefix") String table_prefix);

    int updateByPrimaryKey(@Param("category") Category category,@Param("table_prefix") String table_prefix);

    List<Category> selectCategoryChildrenByParentId(@Param("parentId") Long parentId,@Param("table_prefix") String table_prefix);


}